﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;

namespace Fulcrum.ViewModelGenerator.UnitTests
{
    public class PropertyChangedEventArgs<T> : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the PropertyChangedEventArgs class. 
        /// </summary>
        /// <param name="oldValue">The old value.</param>
        /// <param name="newValue">The new, current, value.</param>
        public PropertyChangedEventArgs(T oldValue, T newValue)
        {
            this.OldValue = oldValue;
            this.NewValue = newValue;
        }

        /// <summary>
        /// Gets the previous value for the property.
        /// </summary>
        public T OldValue
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the new value for the property.
        /// </summary>
        public T NewValue
        {
            get;
            private set;
        }
    }
}
